#!/bin/bash

_tag=$1

if [ -z "${_tag}" ]; then
    source _VERSION   
    _tag=${_VERSION}
fi

docker rm -f cms-admin

docker rmi -f "cms-admin:${_tag}"

docker build --tag "cms-admin:${_tag}"  --no-cache=true .

docker images

docker run -dit -p 8090:80 --name cms-admin cms-admin:$_tag

docker ps -a